// 微信功能类型定义
export interface WeChatFeature {
  id: string
  title: string
  description: string
  icon: string
  route: string
  color: string
  status: 'active' | 'inactive' | 'coming'
}

// 用户信息类型
export interface UserInfo {
  openid: string
  nickname: string
  avatar: string
  gender: number
  city: string
  province: string
  country: string
}

// 支付信息类型
export interface PaymentInfo {
  orderId: string
  amount: number
  description: string
  status: 'pending' | 'success' | 'failed'
  createTime: string
}

// API响应类型
export interface ApiResponse<T = any> {
  code: number
  message: string
  data: T
}

// 微信授权信息
export interface AuthInfo {
  accessToken: string
  refreshToken: string
  expiresIn: number
  scope: string
}

// 分享信息
export interface ShareInfo {
  title: string
  description: string
  link: string
  imgUrl: string
}

// 位置信息
export interface LocationInfo {
  latitude: number
  longitude: number
  address: string
  city: string
  province: string
}

// 功能项类型
export interface FunctionItem {
  id: string
  name: string
  description: string
  icon: string
  path: string
  enabled: boolean
  sort: number
}

